export const exportFile = (data, fileName) => {
  const blob = new Blob([data], {type: 'application/vnd.ms-excel'});
  console.log('导出的表格文件',blob);
  const elink = document.createElement('a');
  elink.download = fileName;
  elink.style.display = 'none';
  elink.href = URL.createObjectURL(blob);
  document.body.appendChild(elink);
  elink.click();
  URL.revokeObjectURL(elink.href); // 释放URL 对象
  document.body.removeChild(elink);
};
